const express = require('express');
const router = require('./router/index');
const ip = 'localhost';
const localPort = 3000;
app = express();
app.use('/',router);
app.listen(localPort, (err) => {
  if (!err) {
    console.log(`app listening at http://${ip}:${localPort}/`);
  } else {
    console.log('服务器启动失败');
  }
});